import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: () => import('../views/IndexView.vue')
  },
  {
    path: '/more',
    name: 'more',
    component:{render: (h) => h('router-view')},
    children:[
      {
        path: 'BaolongSnackMap',
        name: 'BaolongSnackMap',
        component: () => import('@/views/more/BaolongSnackMap/BaolongSnackMap.vue')
      },
      {
        path: 'ChinaSnackMap',
        name: 'ChinaSnackMap',
        component: () => import('@/views/more/ChinaSnackMap/ChinaSnackMap.vue')
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
